package com.wsm.util.httpclient.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：wangshimin
 * @date ：Created in 2021-03-02 上午 09:59
 * @description：
 * @version:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "httpclient.util", ignoreInvalidFields = true)
public class HttpUtilConfig {
    /**
     * 最大超时时间
     */
    private int maxTimeOut = 20000;

    /**
     * 连接池大小
     */
    private int maxTotal = 100;

    /**
     * 活动连接校验时间
     */
    private int validateAfterInactivity = 1000;
}
